package com.xiaomengkuan.test.service.impl;

import com.xiaomengkuan.test.dao.TagRepository;
import com.xiaomengkuan.test.entity.pojo.Tag;
import com.xiaomengkuan.test.service.TagService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-01-11 2:09 下午, File Encoding: utf8 --
 */
@Service
public class TagServiceImpl implements TagService {
    @Resource
    TagRepository tagRepository;
    @Override
    public List<Tag> findAllByType(int type) {
        return tagRepository.findAllByType(type);
    }
}
